package com.ruoyi.web.util;

/**
 * @Description 常量枚举类
 * @Author Jason
 * @Date 2021/4/15 17:04
 * @Package com.gssx.interotcapi.common
 * @Project interotc-server
 */
public enum SysEnum {


    /*******************************枚举_异常提示 ***********************************/

    SIGN_FAILED("1002", "签名失败"),
    VERIFY_SIGNATURE_FAILED("1003", "验签失败"),
    ENCRYPT_FAILED("1004", "加密失败"),
    DECRYPT_FAILED("1005", "解密失败"),
    CHAIN_ERROR("500", "上链失败"),
    REDIS_ERROR("400", "【OBJECTID】对应的【operation】类型未初始化【CREATE】"),
    FILE_ERROR("505","文件上传失败"),
    FILE_DOWNLOAD_ERROR("504","获取文件下载地址失败"),
    QUERY_ERROR("503","未查询到链上数据"),

    /*******************************用户异常提示 ***********************************/
    USERNAME_EXIST("20001", "用户已存在"),
    USER_SAVE_ERROR("20002", "保存失败"),
    USER_UPDATE_ERROR("20003", "更新用户信息失败"),
    USERROLE_SAVE_ERROR("20027", "保存用户角色关系失败"),
    USERROLE_UPDATA_ERROR("20028", "更新用户角色关系失败"),
    USER_DELETE_ERROR("20029", "删除用户信息失败"),
    USER_UPDATE_PWD_ERROR("20031", "修改密码失败"),
    USER_UPDATE_PWD("20030", "旧密码错误"),
    USER_GET_ERROR("20032", "查无用户"),
    SUBJECT_IS_EXIST_ERROR("30001", "主体信息已存在"),
    SUBJECT_INFO_ISNOT_UPCHAIN_ERROR("30002","主体信息未上链"),
    SUBJECT_INFO_ISNOT_MATCH_ERROR("30003","主体信息与原有OBJ_ID不匹配"),
    SUBJECT_NUMBER_INFO_ISNOT_MATCH_ERROR("30004","主体代码信息与原有不匹配"),
    ;


    SysEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
